import request from '@/utils/request'

// 查询车辆审核列表
export function listCheck(query) {
  return request({
    url: '/vehicle/check/list',
    method: 'get',
    params: query
  })
}

// 查询车辆审核详细
export function getCheck(registerId) {
  return request({
    url: '/vehicle/check/' + registerId,
    method: 'get'
  })
}

// 新增车辆审核
export function addCheck(data) {
  return request({
    url: '/vehicle/check',
    method: 'post',
    data: data
  })
}

// 修改车辆审核
export function updateCheck(data) {
  return request({
    url: '/vehicle/check',
    method: 'put',
    data: data
  })
}

// 删除车辆审核
export function delCheck(registerId) {
  return request({
    url: '/vehicle/check/' + registerId,
    method: 'delete'
  })
}

// 查询部门下拉树结构
export function deptTreeSelect() {
  return request({
    url: '/system/user/deptTree',
    method: 'get'
  })
}